package org.jeecg.modules.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author guoyh
 * @ClassName CustomProperties
 * @Description
 * @since 2020/8/16 01:12
 **/
@Component
@ConfigurationProperties(prefix = "custom")
@Data
public class CustomProperties {

    private String h5Domain;

    private String h5ApiDomain;

    private String apiDomain;

    private String accountId;

    private String msgTemplateId;

    private String timeTemplateId;

    private IM im;

    private String doctorDefaultHeadImg;

    private String patientDefaultHeadImg;

    private String wxNotifyUrl;

    private Video video;

    private Jpush jpush;

    @Data
    public static class IM{

        private Long appid;

        private String secret;

        private String admin;

        private String ver;
    }

    @Data
    public static class Video{
        private Long appid;

        private String secretId;

        private String secretKey;
    }

    @Data
    public static class Jpush{
        private String appKey;
        private String masterSecret;
    }
}
